<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>CourseInfo</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
    <script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
    <script src="/webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>


<body>

<h1 align="center">课程信息</h1>
<hr><br><br>

<table class="table table-bordered table-responsive  table-striped table-hover table-condensed">
    <tr>
        <th>课程号</th>
        <th>课程名</th>

        <th>课程学分</th>
        <th>先修课程号</th>

    </tr>
    <!--遍历存放在map集合中的课程信息-->
    <tr th:each="course:${course}">
        <th th:text="${course.getCno()}"></th>
        <th th:text="${course.getCname()}"></th>
        <th th:text="${course.getCcredit}"></th>
        <th th:text="${course.getCpno()}"></th>

    </tr>
</table>
<a class="btn btn-danger" th:href="@{/}" >跳转到首页</a><br/><br/>
</body>
</html>